<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>  
<%@ page import="bean.ClearMachine" %>
<%@ page import="dao.ClearMachineDao" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="<%=request.getContextPath() %>/css/SonPage.css" rel="stylesheet" type="text/css">
    <link href="<%=request.getContextPath() %>/css/Element.css" rel="stylesheet" type="text/css">
    <link href="<%=request.getContextPath() %>/css/easyui.css" rel="stylesheet" type="text/css">
    <link href="<%=request.getContextPath() %>/css/icon.css" rel="stylesheet" type="text/css">
    <script src="<%=request.getContextPath() %>/js/Mtopt_1.1.js" type="text/javascript"></script>
    <script src="<%=request.getContextPath() %>/js/SonPage.js" type="text/javascript"></script>
    <script src="<%=request.getContextPath() %>/js/jquery-1.8.3.js" type="text/javascript"></script>
    <script src="<%=request.getContextPath() %>/js/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="<%=request.getContextPath() %>/js/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <style>.DivShowData{ position:static; width:1180px;height:600px;}</style>

</head>
<body>
<% ClearMachineDao cdao=new ClearMachineDao();
    List<ClearMachine> list=cdao.getAllMachine();%>
<div class="DivShowData panel-noscroll">
    <div class="panel datagrid" style="width: 1180px;">
       <div class="panel-header" style="width: 1168px;">
          <div class="panel-title">净化器配置</div>
          <div class="panel-tool"></div>
       </div>
       <div class="datagrid-wrap panel-body" title="" style="width: 1178px; height: 571px;">
          <div class="datagrid-toolbar">
             <table cellspacing="0" cellpadding="0">
                <tbody>
                   <tr>
                      <td>
                         <a href="../clear machine/addClearMachine.jsp" class="l-btn l-btn-plain" id="">
                            <span class="l-btn-left">
                            <span class="l-btn-text icon-add l-btn-icon-left">增加</span>
                            </span>
                         </a>
                      </td>
                      <td>
                         <a href="PLCManage.jsp" class="l-btn l-btn-plain" id="">
                            <span class="l-btn-left">
                            <span class="l-btn-text icon-reload l-btn-icon-left">刷新</span>
                            </span>
                         </a>
                      </td>
                   </tr>
                </tbody>
             </table>
          </div>
          <div class="datagrid-view" style="width: 1178px; height: 542px;">
          <style type="text/css">
				div.datagrid-cell-c1-PLCNo {width:72px;}
				div.datagrid-cell-c1-PLCName {width:112px;}
				div.datagrid-cell-c1-PLCMarker {width:72px;}
				div.datagrid-cell-c1-Factory {width:72px;}
				div.datagrid-cell-c1-ProtocolVersion {width:72px;}
				div.datagrid-cell-c1-FileSavePath {width:192px;}
				div.datagrid-cell-c1-InstallTime {width:77px;}
          </style>
  <div class="datagrid-view1" style="width: 0px;">
	<div class="datagrid-header" style="width: 0px; height: 49px;">
		<div class="datagrid-header-inner" style="display: block;"></div>
	</div>
	<div class="datagrid-body" style="width: 0px; margin-top: 0px; height: 492px;">
		<div class="datagrid-body-inner"></div>
	</div>
	<div class="datagrid-footer" style="width: 0px;">
		<div class="datagrid-footer-inner" style="display: none;"></div>
	</div>
  </div>
  <div class="datagrid-view2" style="width: 1178px;">
		<div class="datagrid-header" style="width: 1178px;">
			<div class="datagrid-header-inner" style="display: block;">
				<table class="datagrid-htable" border="0" cellspacing="0" cellpadding="0" style="height: 50px;">
					<tbody>
						<tr class="datagrid-header-row">
							<td rowspan="2" field="PLCNo">
								<div class="datagrid-cell" style="width: 119px; text-align: left;">
									<span>下位机编码</span>
									<span class="datagrid-sort-icon">&nbsp;</span>
								</div>
							</td>
							<td rowspan="2" field="PLCName">
								<div class="datagrid-cell" style="width: 182px; text-align: left;">
									<span>下位机名称</span>
									<span class="datagrid-sort-icon">&nbsp;</span>
								</div>
							</td>
							<td rowspan="2" field="PLCMarker">
								<div class="datagrid-cell" style="width: 119px; text-align: left;">
									<span>型号</span>
									<span class="datagrid-sort-icon">&nbsp;</span>
								</div>
							</td>
							<td colspan="2">
								<div class="datagrid-cell-group" style="width:238px;">信息</div>
							</td>
							<td rowspan="2" field="InstallTime" class="">
								<div class="datagrid-cell" style="width: 129px; text-align: left;">
									<span>安装时间</span>
									<span class="datagrid-sort-icon">&nbsp;</span>
								</div>
							</td>
						</tr>
						<tr class="datagrid-header-row">
							<td field="Factory">
								<div class="datagrid-cell" style="width: 119px; text-align: left;">
									<span>生产厂家</span>
									<span class="datagrid-sort-icon">&nbsp;</span>
								</div>
							</td>
							<td field="ProtocolVersion">
								<div class="datagrid-cell" style="width: 119px; text-align: left;">
									<span>工厂版本</span>
									<span class="datagrid-sort-icon">&nbsp;</span>
								</div>
							</td>
						</tr>
						
						<%for(ClearMachine cm:list){ %>
						<tr>
						    <td><%=cm.getLowid() %></td>
						    <td><%=cm.getName() %></td>
						    <td><%=cm.getType() %></td>
						    <td><%=cm.getProducer() %></td>
						    <td><%=cm.getVersion() %></td>
						    <td><%=cm.getSetTime() %></td>
						    <td>
						       <a href="<%=request.getContextPath() %>/deleClearServlet?id=<%=cm.getId() %>">删除</a>
						    </td>
						  </tr>
						<%} %>
						
					</tbody>
				</table>
			</div>
		</div>
		<div class="datagrid-body" style="width: 1178px; margin-top: 0px; height: 492px;"></div>
		<div class="datagrid-footer" style="width: 1178px;">
			<div class="datagrid-footer-inner" style="display: none;"></div>
		</div>
  </div>
	<div id="DivShowData" style="display: none;"></div>
          </div>
       </div>
   </div>
</div>

<div class="panel window" style="display: none; width: 188px; left: 345px; top: 172.5px;">
   <div class="panel-header panel-header-noborder window-header" style="width: 188px;">
      <div class="panel-title">New Window</div>
         <div class="panel-tool">
            <a class="panel-tool-collapse" href="javascript:void(0)"></a>
            <a class="panel-tool-min" href="javascript:void(0)"></a>
            <a class="panel-tool-max" href="javascript:void(0)"></a>
            <a class="panel-tool-close" href="javascript:void(0)"></a>
         </div>
      </div>
      <div id="DivInnerBox" class="easyui-window panel-body panel-body-noborder window-body" data-options="modal:true,closed:true" style="width: 186px; height: 164px; overflow: hidden;" title="">
         <iframe id="IframeBoxPage" name="IframeBoxPage" src="" frameborder="0" width="100%" height="100%"></iframe>
      </div>
</div>
<div class="window-shadow" style="display: none; left: 345px; top: 172.5px;"></div>
<div class="window-mask" style="width: 1180px; height: 600px; display: none;"></div>
</body>
</html>